local music_mgr = {}
local cur_idx = 0
local max_idx = 6
local music_file = {
	"shop_jbrice_01.music.battle_01",
	"shop_jbrice_01.music.battle_01_end",
	"shop_jbrice_01.music.battle_02",
	"shop_jbrice_01.music.battle_02_end",
	"shop_jbrice_01.music.battle_03",
	"shop_jbrice_01.music.battle_03_end"
}
function music_mgr.init(  )
	
end

function music_mgr.play()
	-- if cur_idx >= max_idx then
	-- 	cur_idx = 1
	-- else
	-- 	cur_idx = cur_idx + 1
	-- end
	-- local music_name = music_file[cur_idx]
	-- print("music_name = ",music_name)
	-- local entity3 = Entities:FindByName(nil,"npc_fountain_team3")
	-- EmitSoundOn(music_name,entity3)
	-- local duration = entity3:GetSoundDuration(music_name,"shop_jbrice_01.music")
	-- print(duration)
	-- entity3:SetContextThink(DoUniqueString("music"),function() 
	-- 	music_mgr.play()
	-- end,duration)
end

return music_mgr